<%--
  Created by IntelliJ IDEA.
  User: tzh
  Date: 2020/10/20
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<script src="<%=request.getContextPath()%>js/jquery-1.8.2.min.js"></script>
<link href="<%=request.getContextPath()%>css/index_work.css" rel="stylesheet" type="text/css">
<body>
<a href="toAdd">添加</a>
<table>
    <tr>
        <td>ID</td>
        <td>NAME</td>
        <td>SCORE</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${zset}" var="emp">
    <tr>
        <td>${emp.id}</td>
        <td>${emp.name}</td>
        <td>${emp.score}</td>
        <td>
            <a href="toUpdate?id=${emp.id}&name=${emp.name}&score=${emp.score}">修改</a>
            <a href="delEmp?id=${emp.id}&name=${emp.name}&score=${emp.score}">删除</a>
        </td>
    </tr>
    </c:forEach>
    <tr>
        <td colspan="4">

            总记录：${count}
            总页数：${pageCount}
            <a href="list?cpage=1">首页</a>
            <a href="list?cpage=${prePage}">上页</a>
            <a href="list?cpage=${nextPage}">下页</a>
            <a href="list?cpage=${pageCount}">尾页</a>
        </td>

    </tr>
</table>
</body>
</html>
